package driver.nxt.action;

import driver.actions.MoveForwardAction;
import driver.exceptions.ExecuteException;
import driver.nxt.NXTController;

/**
 * Moves the NXT forward
 *
 * @author David Martin
 */
public class NXTMoveForwardAction extends MoveForwardAction
{

  private NXTController controller;

  /**
   *
   * @param controller the NXT controller
   */
  public NXTMoveForwardAction(NXTController controller)
  {
    this.controller = controller;
  }

  /**
   * Instruct the controller to move the NXT backward
   *
   * @throws driversuite.exceptions.ExecuteException
   */
  public void execute() throws ExecuteException
  {
    controller.forward();
  }
}
